# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=py3-terminaltables
_pkgname=terminaltables
pkgver=3.1.10
pkgrel=2
pkgdesc="Generate simple tables in terminals from a nested list of strings"
url="https://pypi.org/project/terminaltables"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces=py-terminaltables # Backwards compatibility
provides=py-terminaltables=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
a5bd30116cb0eb05c859860f40590c05a5ee8067436e09724f4f08e6b7e2f91c7b704f84128f48a6c54037d6546ec8a108ed8d463f3e1a39c001d4f3382cedc4  terminaltables-3.1.10.tar.gz
"
